<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>clock</title>
</head>
<body>
<h1>Current date and time on server</h1>
<c:forEach items = "${sessionScope.CallHistory}" var = "history">
	${history}<br/>
	</c:forEach>
<h2>Use this from to select another format</h2>
<form action="${pageContext.request.contextPath}/clock" method = "post">
Select format <select name = "format">
<option value = "full" selected> full </option>
<option value = "long"> long </option>
<option value = "medium"> medium </option>
<option value = "short"> short </option>
</select> and click
<input type="submit" name = "getTime" value = "Get Time">
</form>
<br/>
<hr>
Current locale: French (Canada). To change locale, 
<a href="${pageContext.request.contextPath}/setLocale?param=value">Start over</a>
</body>
</html>